package movies.repository;

import java.util.List;
import movies.domain.Movie;

/**
 *
 * @author Hanna_Aliakseichykava
 */
public interface IMovieRepository {

    public Movie saveMovie(Movie movie);

   public Movie getMovieById(final int id);

   public void deleteMovie(Movie movie);

   public List<Movie> getMoviesByName(final String name);

   public List<Movie> getMoviesByYear(final int year);

   public List<Movie> getAllMovies();


}
